package com.example.foodsy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDate;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 屠宰企业产品批号信息表
 * </p>
 *
 * @author cgc
 * @since 2025-09-23
 */
@Getter
@Setter
@TableName("slau_info")
@ApiModel(value = "SlauInfo对象", description = "屠宰企业产品批号信息表")
public class SlauInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("编号（代替batch_id与slau_id的复合主键）")
    @TableId(value = "sb_id", type = IdType.AUTO)
    private Integer sbId;

    @ApiModelProperty("所属屠宰企业产品批号")
    @TableField("batch_id")
    private String batchId;

    @ApiModelProperty("所属屠宰企业编号")
    @TableField("slau_id")
    private Integer slauId;

    @ApiModelProperty("所属养殖企业进场编号")
    @TableField("fb_id")
    private Integer fbId;

    @ApiModelProperty("产品品种")
    @TableField("type")
    private String type;

    @ApiModelProperty("肉类检验检疫合格证编号")
    @TableField("qua_id")
    private String quaId;

    @ApiModelProperty("官方检验员名称")
    @TableField("test_name")
    private String testName;

    @ApiModelProperty("批号录入日期")
    @TableField("batch_date")
    private LocalDate batchDate;

    @ApiModelProperty("批号状态：1：新建；2：待确认；3：已确认；4：已下架；")
    @TableField("state")
    private Integer state;

    @ApiModelProperty("备注")
    @TableField("remarks")
    private String remarks;
}
